package test.time;

import java.time.Duration;
import java.time.Instant;

public class A {
    public static void main(String[] args) {
        Instant instant = Instant.now();
        Duration.between(instant, Instant.now()).toNanos();
        System.out.println(instant);
        System.out.println(instant.toEpochMilli());
        System.out.println(instant.getNano());
        System.out.println(System.nanoTime());
        System.out.println(System.nanoTime());
        System.out.println(System.currentTimeMillis());
    }
}
